package com.webservice.xmloper.rulesearch;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class RulSearchOper {
	
	/**
	 * 解析管理指令查询指令 
	 */
	public static RuleSearchCode parseRuleSearchCodeXml(String xmlString) throws Exception{
		XStream xs = new XStream();
		xs.processAnnotations(RuleSearchCode.class);
		InputStream myIn=new ByteArrayInputStream(xmlString.getBytes());
		return (RuleSearchCode) xs.fromXML(myIn);
	}
}
